#pragma once

#include <string>
/**
 * @brief Get absolute path by concatenating prefix and relative_path.
 * @return The absolute path.
 */
std::string GetAbsolutePath(const std::string &prefix,
    const std::string &relative_path);

/**
* @brief Check if the path exists.
* @param path a file name, such as /a/b/c.txt
* @return If the path exists.
*/
bool PathExists(const std::string &path);


//给定一个文件路径，获取文件名
std::string GetFileName(const std::string &path,
                        const bool remove_extension = false);